﻿using Fozzy;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace Microsoft.FamilyShow
{
    /// <summary>
    /// Le string supplémentaire est le séparateur
    /// </summary>
    public class Builder                                        : Pattern<IName> // Concept<StringBuilder, name>
    {
        #region Declarations
            private static Template template                    = new Template("", "{0}\0", "\0\0", "");
        #endregion

        #region States
        #endregion

        #region Properties
        #endregion

        #region Constructeur
            public Builder(IEnumerable<IName> elements)          : base(template, elements)
            {}
        #endregion

            protected override void Bodise(IName sender, Arguments argument)
            {
                base.Bodise(sender, argument)                   ;
                Name current = (Name)Current                    ;
                Concat(Body, First)                             ;
                Concat(Body, Second)                            ;
            }
    }
}
